﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Terms_Conditions.aspx.cs"
    Inherits="Main_Terms_Conditions_Terms_Conditions" EnableEventValidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/User Controls/PageHeading.ascx" TagName="heading" TagPrefix="acc" %>
<%@ Register Src="~/User Controls/CommonControls.ascx" TagName="CommonControls" TagPrefix="MyControls" %>
<%@ Register Src="~/User Controls/Pager.ascx" TagPrefix="custom" TagName="Pager" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Terms & Conditions</title>
    <link href="../../Styles/accounts.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" EnablePartialRendering="true">
    </asp:ScriptManager>
    <asp:UpdateProgress DynamicLayout="false" ID="UpdProgress" runat="server">
        <ProgressTemplate>
            <div align="center">
                <img src="../../Images/ajax-loader.gif" /></div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <div class="divmain" style="width: 100%;">
        <acc:heading ID="pagehead" runat="server" HeadingText="Terms & Conditions" />
    </div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <Triggers>
            <asp:PostBackTrigger ControlID="controls" />
        </Triggers>
        <ContentTemplate>
            <div style="width: 60%; margin-left: 20%; margin-right: 20%; text-align: center">
                <asp:Label ID="lblMsg" runat="server">&nbsp;</asp:Label>
                <asp:HiddenField ID="hidTransaction" runat="server" />
            </div>
            <div style="width: 70%; margin-left: 10%;">
                <asp:Panel ID="pnlAdd" runat="server" Width="100%">
                    <table class="tablecontent" style="margin-bottom: 15px; width: 100%;">
                        <tr>
                            <td colspan="2" style="vertical-align: top;">
                                <span style="float: left;">Terms & Conditions<span style="color: Red">*</span>&nbsp;&nbsp;</span>
                                <asp:TextBox ID="txtTermsConditions" runat="server" TextMode="MultiLine" Height="50"
                                    Width="420" CssClass="input" ValidationGroup="V"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqTerms" runat="server" ControlToValidate="txtTermsConditions"
                                    SetFocusOnError="true" Display="Dynamic" ValidationGroup="V" ErrorMessage="*"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:CheckBox ID="chkSalesInvoice" runat="server" Text="Sales Invoice" />
                            </td>
                            <td>
                                <asp:CheckBox ID="chkSalesReturn" runat="server" Text="Sales Return" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:CheckBox ID="chkDCOutward" runat="server" Text="Delivery Challan Outward" />
                            </td>
                            <td>
                                <asp:CheckBox ID="chkPurchaseReturn" runat="server" Text="Purchase Return" />
                            </td>
                        </tr>
                        <tr>
                            <td style="padding-right: 10px; text-align: right">
                                <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="button" OnClientClick="return ValidateCheckBox()"
                                    OnClick="btnSave_Click" ValidationGroup="V" />
                            </td>
                            <td>
                                <asp:Button ID="btnClose" runat="server" Text="Close" CssClass="button" OnClick="btnClose_Click" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
            <asp:Panel ID="pnlEdit" runat="server">
                <div style="margin-left: 10%; width: 65%">
                    <div style="padding-top: 15px; padding-bottom: 5px; margin-left: 30%;">
                        <div style="float: left;">
                            <custom:Pager ID="custPager" runat="server" OnPageChanged="custPager_PageChanged" />
                        </div>
                        <div style="float: left; margin-left: 10px;">
                            <MyControls:CommonControls ID="controls" runat="server" GridviewControlId="grdDisplay"
                                HideColumns="2" />
                        </div>
                    </div>
                    <div id="divprint" runat="server">
                        <asp:GridView ID="grdDisplay" runat="server" AutoGenerateColumns="False" CssClass="gridview"
                            AlternatingRowStyle-CssClass="gridview_alternate" Width="100%" DataKeyNames="TRMID"
                            AllowPaging="true" PageSize="10" PagerStyle-HorizontalAlign="Right" OnSelectedIndexChanged="grdDisplay_SelectedIndexChanged"
                            RowStyle-CssClass="gridviewitem" PagerStyle-CssClass="pgr" OnPageIndexChanging="grdDisplay_PageIndexChanging"
                            OnRowDataBound="grdDisplay_RowDataBound" OnRowCreated="grdDisplay_RowCreated">
                            <Columns>
                                <asp:TemplateField HeaderText="S.No." ItemStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <%# Container.DataItemIndex+1 %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="TRMDESC" HeaderText="Terms &amp; Conditions" />
                                <asp:CommandField HeaderText="Edit" SelectText="<img src='../../Menu/images/Edit_user.png'/>"
                                    ShowHeader="True" ShowSelectButton="True" ItemStyle-HorizontalAlign="Center" />
                            </Columns>
                        </asp:GridView>
                    </div>
                </div>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
<%--<asp:CommandField HeaderText="Edit" 
                                    EditText="<img src='../../Menu/images/Edit_user.png' alt='Edit'>" ShowEditButton="true" 
                                    UpdateText="<img src='../../Menu/images/update.png' alt='Update'>" 
                                    CancelText="<img src='../../Menu/images/cancel.png' alt='Cancel'>" 
                                    ItemStyle-HorizontalAlign="Center"> 
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:CommandField>--%>